﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WareHouse.Domain.SupplierManagement;

namespace WareHouse.Domain.ModelClass
{
    /// <summary>
    /// 产品信息表
    /// </summary>
    [SqlSugar.SugarTable("ProductInfo")]
    public class ProductInfo:AuditInfo
    {
        /// <summary>
        /// 产品主键
        /// </summary>
        [SugarColumn(IsPrimaryKey =true)]
        /// <summary>
        /// 产品编号
        /// </summary>
        public string ProductId { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName { get; set; }
        /// <summary>
        /// 厂商编码
        /// </summary>
        public string FacturerCode { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string Specification { get; set; }
        /// <summary>
        /// 类别
        /// </summary>
        public int ProductTypeId { get; set; }
        /// <summary>
        /// 存储单位
        /// </summary>
        public string Unit { get; set; }
        /// <summary>
        /// 预警（下）
        /// </summary>
        public int MinWarn { get; set; }
        /// <summary>
        /// 预警（上）
        /// </summary>
        public int MaxWarn { get; set; }
        /// <summary>
        /// 包装类型
        /// </summary>
        public string PackType { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 重量
        /// </summary>
        public decimal Weight { get; set; }

        /// <summary>
        /// 类别
        /// </summary>
        public SupplierType Supplier { get; set; }
        /// <summary>
        /// 供应商ID 外键
        /// </summary>
        //public int SupplierId { get; set; }
    }
}
